package dto;

import org.springframework.web.multipart.MultipartFile;

public class AuctionDTO {
	private int auctionNo;
	private String auctionName;
	private String productName;
	private String categoryName;
	private String sellSite;
	private String saleLocation;
	private String useStartDate;
	private String useEndDate;
	private String registerDate;
	private String updateDate;
	private String deleteDate;
	private int wantPrice;
	private int originalPrice;
	private int couponPrice;
	private int quantity;
	private MemberDTO memberDTO;
	private String file;
	private MultipartFile upfile;
	private String auctionContent;

	public AuctionDTO() {
		super();
	}

	public AuctionDTO(int auctionNo, String auctionName, String productName,
			String categoryName, String sellSite, String saleLocation,
			String useStartDate, String useEndDate, String registerDate,
			String updateDate, String deleteDate, int wantPrice,
			int originalPrice, int couponPrice, int quantity,
			MemberDTO memberDTO, String file, MultipartFile upfile,
			String auctionContent) {
		super();
		this.auctionNo = auctionNo;
		this.auctionName = auctionName;
		this.productName = productName;
		this.categoryName = categoryName;
		this.sellSite = sellSite;
		this.saleLocation = saleLocation;
		this.useStartDate = useStartDate;
		this.useEndDate = useEndDate;
		this.registerDate = registerDate;
		this.updateDate = updateDate;
		this.deleteDate = deleteDate;
		this.wantPrice = wantPrice;
		this.originalPrice = originalPrice;
		this.couponPrice = couponPrice;
		this.quantity = quantity;
		this.memberDTO = memberDTO;
		this.file = file;
		this.upfile = upfile;
		this.auctionContent = auctionContent;
	}

	public int getAuctionNo() {
		return auctionNo;
	}

	public void setAuctionNo(int auctionNo) {
		this.auctionNo = auctionNo;
	}

	public String getAuctionName() {
		return auctionName;
	}

	public void setAuctionName(String auctionName) {
		this.auctionName = auctionName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getSellSite() {
		return sellSite;
	}

	public void setSellSite(String sellSite) {
		this.sellSite = sellSite;
	}

	public String getSaleLocation() {
		return saleLocation;
	}

	public void setSaleLocation(String saleLocation) {
		this.saleLocation = saleLocation;
	}

	public String getUseStartDate() {
		return useStartDate;
	}

	public void setUseStartDate(String useStartDate) {
		this.useStartDate = useStartDate;
	}

	public String getUseEndDate() {
		return useEndDate;
	}

	public void setUseEndDate(String useEndDate) {
		this.useEndDate = useEndDate;
	}

	public String getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}

	public String getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public String getDeleteDate() {
		return deleteDate;
	}

	public void setDeleteDate(String deleteDate) {
		this.deleteDate = deleteDate;
	}

	public int getWantPrice() {
		return wantPrice;
	}

	public void setWantPrice(int wantPrice) {
		this.wantPrice = wantPrice;
	}

	public int getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(int originalPrice) {
		this.originalPrice = originalPrice;
	}

	public int getCouponPrice() {
		return couponPrice;
	}

	public void setCouponPrice(int couponPrice) {
		this.couponPrice = couponPrice;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public MemberDTO getMemberDTO() {
		return memberDTO;
	}

	public void setMemberDTO(MemberDTO memberDTO) {
		this.memberDTO = memberDTO;
	}

	public String getFile() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public MultipartFile getUpfile() {
		return upfile;
	}

	public void setUpfile(MultipartFile upfile) {
		this.upfile = upfile;
	}

	public String getAuctionContent() {
		return auctionContent;
	}

	public void setAuctionContent(String auctionContent) {
		this.auctionContent = auctionContent;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((auctionContent == null) ? 0 : auctionContent.hashCode());
		result = prime * result
				+ ((auctionName == null) ? 0 : auctionName.hashCode());
		result = prime * result + auctionNo;
		result = prime * result
				+ ((categoryName == null) ? 0 : categoryName.hashCode());
		result = prime * result + couponPrice;
		result = prime * result
				+ ((deleteDate == null) ? 0 : deleteDate.hashCode());
		result = prime * result + ((file == null) ? 0 : file.hashCode());
		result = prime * result
				+ ((memberDTO == null) ? 0 : memberDTO.hashCode());
		result = prime * result + originalPrice;
		result = prime * result
				+ ((productName == null) ? 0 : productName.hashCode());
		result = prime * result + quantity;
		result = prime * result
				+ ((registerDate == null) ? 0 : registerDate.hashCode());
		result = prime * result
				+ ((saleLocation == null) ? 0 : saleLocation.hashCode());
		result = prime * result
				+ ((sellSite == null) ? 0 : sellSite.hashCode());
		result = prime * result
				+ ((updateDate == null) ? 0 : updateDate.hashCode());
		result = prime * result + ((upfile == null) ? 0 : upfile.hashCode());
		result = prime * result
				+ ((useEndDate == null) ? 0 : useEndDate.hashCode());
		result = prime * result
				+ ((useStartDate == null) ? 0 : useStartDate.hashCode());
		result = prime * result + wantPrice;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AuctionDTO other = (AuctionDTO) obj;
		if (auctionContent == null) {
			if (other.auctionContent != null)
				return false;
		} else if (!auctionContent.equals(other.auctionContent))
			return false;
		if (auctionName == null) {
			if (other.auctionName != null)
				return false;
		} else if (!auctionName.equals(other.auctionName))
			return false;
		if (auctionNo != other.auctionNo)
			return false;
		if (categoryName == null) {
			if (other.categoryName != null)
				return false;
		} else if (!categoryName.equals(other.categoryName))
			return false;
		if (couponPrice != other.couponPrice)
			return false;
		if (deleteDate == null) {
			if (other.deleteDate != null)
				return false;
		} else if (!deleteDate.equals(other.deleteDate))
			return false;
		if (file == null) {
			if (other.file != null)
				return false;
		} else if (!file.equals(other.file))
			return false;
		if (memberDTO == null) {
			if (other.memberDTO != null)
				return false;
		} else if (!memberDTO.equals(other.memberDTO))
			return false;
		if (originalPrice != other.originalPrice)
			return false;
		if (productName == null) {
			if (other.productName != null)
				return false;
		} else if (!productName.equals(other.productName))
			return false;
		if (quantity != other.quantity)
			return false;
		if (registerDate == null) {
			if (other.registerDate != null)
				return false;
		} else if (!registerDate.equals(other.registerDate))
			return false;
		if (saleLocation == null) {
			if (other.saleLocation != null)
				return false;
		} else if (!saleLocation.equals(other.saleLocation))
			return false;
		if (sellSite == null) {
			if (other.sellSite != null)
				return false;
		} else if (!sellSite.equals(other.sellSite))
			return false;
		if (updateDate == null) {
			if (other.updateDate != null)
				return false;
		} else if (!updateDate.equals(other.updateDate))
			return false;
		if (upfile == null) {
			if (other.upfile != null)
				return false;
		} else if (!upfile.equals(other.upfile))
			return false;
		if (useEndDate == null) {
			if (other.useEndDate != null)
				return false;
		} else if (!useEndDate.equals(other.useEndDate))
			return false;
		if (useStartDate == null) {
			if (other.useStartDate != null)
				return false;
		} else if (!useStartDate.equals(other.useStartDate))
			return false;
		if (wantPrice != other.wantPrice)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "AuctionDTO [auctionNo=" + auctionNo + ", auctionName="
				+ auctionName + ", productName=" + productName
				+ ", categoryName=" + categoryName + ", sellSite=" + sellSite
				+ ", saleLocation=" + saleLocation + ", useStartDate="
				+ useStartDate + ", useEndDate=" + useEndDate
				+ ", registerDate=" + registerDate + ", updateDate="
				+ updateDate + ", deleteDate=" + deleteDate + ", wantPrice="
				+ wantPrice + ", originalPrice=" + originalPrice
				+ ", couponPrice=" + couponPrice + ", quantity=" + quantity
				+ ", memberDTO=" + memberDTO + ", file=" + file + ", upfile="
				+ upfile + ", auctionContent=" + auctionContent + "]";
	}

}
